package domain;

public class Question {
    private Integer id;

    private String content;

    private Integer hasPic;

    private String picUrl;

    private String answer;

    private Integer type;//0--单选

    public Question(Integer id, String content, Integer hasPic, String picUrl, String answer, Integer type) {
        this.id = id;
        this.content = content;
        this.hasPic = hasPic;
        this.picUrl = picUrl;
        this.answer = answer;
        this.type = type;
    }
    public Question(String content, Integer hasPic, String picUrl, String answer, Integer type) {
        this.id = id;
        this.content = content;
        this.hasPic = hasPic;
        this.picUrl = picUrl;
        this.answer = answer;
        this.type = type;
    }

    public Question() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getHasPic() {
        return hasPic;
    }

    public void setHasPic(Integer hasPic) {
        this.hasPic = hasPic;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl == null ? null : picUrl.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", hasPic=" + hasPic +
                ", picUrl='" + picUrl + '\'' +
                ", answer='" + answer + '\'' +
                ", type=" + type +
                '}';
    }
}